<template>
    <div class="child">
        <h3>我是child(子组件)</h3>
        <Sun></Sun>
    </div>
</template>

<script>
import Sun from './Sun';
    export default {
    name: "Child",
    components: { Sun }
}
</script>

<style>
    .child{
        background-color: skyblue;
        padding: 10px;
    }
</style>